import Vue from 'vue'

export default {

	removeInService: function(paramsObj,callBack){
		Vue.axios.post(`http://localhost:8080//shoppingcartdetail/removeIn`, paramsObj).then(res => {
			callBack(res.data);
		})
	},
    showCart(callback){
      Vue.axios.get(`http://localhost:8080/cart/mycart`).then(res=>{
          callback(res.data);
      });
    },
    deleteCartDetail(callback){
      Vue.axios.get('http://localhost:8080/shoppingcartdetail/remove')
    },
	showFoodRecommend:function(paramsObj,callBack){
		Vue.axios.post(`http://localhost:8080//food/showOrderBy`, paramsObj).then(res => {
			callBack(res.data);
		})
	},
	showFoodMounth:function(paramsObj,callBack){
		Vue.axios.get(`http://localhost:8080//goodorderdetail/getfoodmonthsalenumber`, {params:paramsObj}).then(res => {
			callBack(res.data);
		})
	}
}